package com.sf.fy.uav.task.rest;

import com.sf.fy.uav.common.request.order.task.TaskRequest;
import com.sf.fy.uav.common.response.user.TaskResponse;
import com.sf.fy.uav.task.service.ITaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author LTQ
 * @since 2023-04-04
 */
@RestController
@RequestMapping("/sys/task")
public class TaskRest {

    @Autowired
    private ITaskService iTaskService;




    //    @GetMapping("get-ing-tasks")
    public List<TaskResponse> getIngTasks(String statuses) {
        return iTaskService.getIngTasks(statuses);
    }

    public List<TaskResponse> getAllTasks() {
        return iTaskService.getAllTasks();
    }

    public void addTask(TaskRequest taskRequest) {

    }
}
